<%@include file="inc/prelude.jsp" %>
<div id="wrapper">
    <%@include file="inc/header.jsp" %>
    <%@include file="inc/menu.jsp" %>
    <div id="content">
        <div class="content-left">
            <form action="/user/reqActiveBank.htm" method="POST">
                <div id="table-mess">
                    <div class="mess">
                        <div class="mess-title"><img src="${pageContext.request.contextPath}/res/images/star.png" border="0"> Manage Bank Accounts</div>
                        <div class="clearboth"></div>
                        <div class="mess-content">
                            <div class="red">
                                ${param['message']}
                            </div>
                            <div class="row-header-radio bold-text">
                                <div class="col-card left-card"><s:text name="user.manage_bank.title" /></div>
                                <div class="col-card right-card">[<a href="${pageContext.request.contextPath}/user/add_bank.htm">Add Bank Account</a>]</div>
                            </div>
                            <div class="clearboth"></div>
                            <div class="row-radio bold-text center-card">
                                <div class="col-symbo">&nbsp;</div>
                                <div class="col-type-card"><s:text name="user.manage_bank.bankName" /></div>
                                <div class="col-number-card"><s:text name="user.manage_bank.accountNumber" /></div>
                                <div class="col-verified-card"><s:text name="user.manage_bank.verified" /></div>
                                <div class="col-action-card">&nbsp;</div>
                            </div>
                                
                            <c:forEach items="${listBank}" var="bank">
                                <div class="row-radio">
                                    <div class="col-symbo"><input name="bank_id" value="${bank.id}" selected="no" type="radio"></div>
                                    <div class="col-type-card">${bank.bankName}</div>
                                    <div class="col-number-card">${bank.accountNumberHidden}</div>
                                    <div class="col-verified-card">${bank.active}</div>
                                    <div class="col-action-card"><a href="/user/del_bank.htm?id=${bank.id}" class="green">[delete]</a></div>
                                </div>
                            </c:forEach>
                            <div class="clearboth"></div>
                            <div class="row-button-submit">
                                <br>
                                <button name="m_cards" type="submit">Verify</button>
                            </div>
                            <%--
                            <s:iterator value="listBank" var="bank" status="status">
                                <s:url id="del" action="del_bank" namespace="/user">
                                    <s:param name="id" value="#bank.id" />
                                </s:url>
                                <div class="row-radio">
                                    <div class="col-symbo"><s:property value="#status.count" /></div>
                                    <div class="col-type-card"><s:property value="#bank.bankName" /></div>
                                    <div class="col-number-card"><s:property value="#bank.accountNumberHidden" /></div>
                                    <s:if test="#bank.active=='no'">
                                        <div class="col-action-card">
                                            <s:url id="ver" action="reqActiveBank" namespace="/user">
                                                <s:param name="id" value="#bank.id" />
                                            </s:url>
                                            <s:a href="%{ver}">[<s:text name="user.manage_card.verify" />]</s:a>
                                        </div>
                                    </s:if>
                                    <s:else>
                                        <div class="col-verified-card">
                                            <s:property value="#bank.active" />
                                        </div>
                                    </s:else>
                                    <div class="col-action-card"><s:a href="%{del}">[<s:text name="user.manage_card.delete" />]</s:a></div>
                                </div>
                            </s:iterator>
                            --%>
                        </div>
                        <div class="clearboth"></div>
                    </div>
                </div>
            </form>
            <%@include file="inc/quicklink.jsp" %>
        </div>
        <%@include file="inc/rightmenu.jsp" %>
    </div>
    <%@include file="inc/footer.jsp" %>
</div>
<%@include file="inc/coda.jsp" %>